---
title: Add a claim number to a Coverage B filter
summary: Translate a claim number to a claim ID filter entry.
status: draft
owner: SAIF Documentation
last_reviewed: 2026-08-21
library: SAIF.Business.Tasks.Claim
reference_type: embedded
operation_id: OP-15
trigger: CoverageBTaskCriteria.AddClaimNum call
---

# Add a claim number to a Coverage B filter

Translates a claim number to a claim ID using a throwaway task instance, then adds the resolved ID to the collection filter.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-15 |
| **Trigger** | `CoverageBTaskCriteria.AddClaimNum` call |
| **Inputs** | Claim number |
| **Outputs** | Claim ID added to the inherited `ClaimList` filter |
| **Primary components** | `clsCoverageBTaskCollection.CoverageBTaskCriteria.AddClaimNum` |
| **Entry point** | `SAIF.Business.Tasks.Claim/clsCoverageBTaskCollection.vb` |

## Steps

1. If the supplied claim number is non-empty, create a throwaway `clsCoverageBTask` with `ClaimID = 0`.
2. Assign `ClaimNum`, which resolves the claim through `clsClaimData` and validates via [BR-CB-01](../business-rules.md#br-cb-01-coverage-b-task-must-reference-a-valid-coverage-b-claim).

   > **Origin**: This step reuses the claim resolution logic from [Change the claim on a task](op-8-change-claim-on-task.md).
3. Add the resulting `ClaimID` to the inherited `ClaimList` filter and discard the temporary task.*

## Process flow

```mermaid
flowchart TD
	Start([AddClaimNum called]) --> Check{Claim number non-empty?}
	Check -->|No| Skip([No-op])
	Check -->|Yes| S1["Create throwaway<br>clsCoverageBTask"]
	S1 --> S2["Assign ClaimNum, resolve via<br>clsClaimData"]
	S2 --> S3["Add ClaimID to ClaimList<br>filter"]
	S3 --> EndOk([Temp task discarded])
```

## Failure and edge-case behavior
- Constructs a throwaway task purely to translate claim number to claim ID — a per-call database round trip whose performance impact was not measured.*

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [SQL catalog](../sql/index.md)
- [Database tables](../database-tables.md)

## Sources
- SAIF.Business.Tasks.Claim/clsCoverageBTaskCollection.vb
